package com.sgl.config;

import com.sgl.service.DictService;
import org.springframework.beans.factory.annotation.Autowired;

public  class KeyUti {
    @Autowired
    DictService dictService;

    public String merchantId=dictService.findByKeywords("merchantId").getValue();
    public String account=dictService.findByKeywords("account").getValue();
    public String secretKey=dictService.findByKeywords("secretKey").getValue();
    public String payNotifyurl=dictService.findByKeywords("payNotifyurl").getValue();



    //创建 SingleObject 的一个对象
    private static KeyUti instance = new KeyUti();

    //让构造函数为 private，这样该类就不会被实例化
    private KeyUti(){}

    //获取唯一可用的对象
    public static KeyUti getInstance(){
        return instance;
    }


}
